A method tracks a tool with respect to a bone in computer-assisted surgery. A reference tracker with a MEMS unit is secured to the bone. The tracker outputs data relating to its orientation. A tool provided with a MEMS unit and secured to the bone is preset with an initial orientation. The tool outputs tracking data related to orientation of the tool once initialized. A trackable frame of reference relating the bone to the orientation of the tracker is created. The MEMS unit of the tool is initialized. A relation between the initial orientation of the tool and the orientation of the tracker at initialization of the MEMS unit of the tool is recorded. Orientational data of the tool relative to the frame of reference of the bone calculated using the relation is displayed. A computer-assisted surgery system for tracking a tool with respect to a bone after an initialization of a MEMS unit is also described.