A pacemaker is a small electronic device that helps your heart's electrical system beat at the right pace. Inserting the pacemaker into your body is called implantation. You stay awake during the procedure.