According to journalist Bill Harry , McCartney wrote the lyrics while shaving , but McCartney told biographer Barry Miles that he wrote them while on a tour bus . According to journalist Bill Harry , McCartney wrote the lyrics while shaving , though McCartney told biographer Barry Miles that he wrote them while on a tour bus .