A method and apparatus for treatment of hypertension and heart failure by increasing vagal tone and secretion of endogenous atrial hormones by excitory pacing of the heart atria. Atrial pacing is done during the ventricular refractory period resulting in atrial contraction against closed AV valves, and atrial contraction rate that is higher than the ventricular contraction rate. Pacing results in the increased atrial wall stress. An implantable device is used to monitor ECG and pace the atria in a nonphysiologic manner.