A new method is presented for the calculation of the mean excitation energy
(Bethe logarithm) for helium and other two-electron systems. The method re
quires only a single matrix diagonalization within a correlated Hylleraas b
asis set extended to contain a wide range of distance scales. High-precisio
n results are obtained for the ground states of Ps(-) and H-, and all the S
- and P-states of heliumlike ions up to n = 5, including finite mass correc
tions. The results are used to calculate revised values for the quantum ele
ctrodynamic shifts for helium, and a comparison with experiment is presente
d.