A struggling rocker, a retired ’60s icon, and one unforgettable hook came together for this unlikely comeback.