Charlie Sheen played Harper on the show for eight seasons before he was fired for his erratic behavior and drug use.
His character was killed by a train off-screen and actor Ashton Kutcher took over as lead of the cast for the current ninth season of "Men."
Bates will play Harper's ghost in the April 30 episode.
"After Alan suffers a minor heart attack, Charlie's ghost will pay a visit to his hospital bedside," CBS said in a synopsis.
Jon Cryer plays Harper's brother Alan on the show.