Paul McCartney has agreed to induct his former Beatles mate, Ringo Starr, into the Rock and Roll Hall of Fame next month.