But if you have AFib and your heart is beating too slowly, your doctor may recommend a pacemaker along with other treatment . It sends out electrical pulses that take the place of the mixed-up ones, so your heart beats at the right pace. You also might need a pacemaker if you have AFib and congestive heart failure.31 Mar 2020