In this surgery, a pacemaker (a small device that delivers electrical pulses) is placed in the chest area of a patient who may have irregular heart rhythm problems. The device helps regulate the heartbeat.