The procedure may be planned ahead of time, or it may be done during an emergency (temporary pacemaker). You will be given medicine to make parts of your body numb or make you sleep during the procedure. You may receive antibiotics to prevent infection and blood thinning medicine to prevent blood clots during the procedure. Different types of pacemakers require different procedures to place them.