Pacemakers emit electrical impulses to maintain a proper heart rate and rhythm. They are typically implanted under the skin near the clavicle, with leads extending into the heart. These devices are life-saving for patients with arrhythmias or other cardiac conditions that cause an irregular heartbeat.