Medications and a special diet can help the heart to pump better. Sometimes a heart operation, such as a valve replacement or coronary artery bypass, can also help.