The Academy Award-winning actress, who has appeared in movies such as Titanic and About Schmidt, will feature in an episode of the Ashton Kutcher comedy on Monday, April 30.
Bates will play the ghost of former character Charlie Harper, who was played by Charlie Sheen, in the episode. After Alan Harper (Jon Cryer) suffers a minor heart attack, his brother's ghost pays a visit to his hospital bedside.
Ashton Kutcher and Two and a Half Men showrunner Chuck Lorre recently admitted that they are not sure if the show will be renewed for another season.
Kutcher said: "I don't think that the show's been picked up for another year. I'm absolutely adoring the time that I'm having, but I haven't heard from the powers that be yet, so I don't know."
Lorre added: "It's unusual when they cancel a show that's in the top ten. I think there's hope... I think reinventing the show going forward, everybody has to sign back up."
Sheen last month called for the series to be axed, saying: "I'm tired of pretending like the show doesn't suck... When you take away the anchor from your show, which they stupidly did, you go adrift."
> Charlie Sheen sorry for "disrespectful" Ashton Kutcher comments
> 'Two and a Half Men' execs angry at Charlie Sheen 'Anger Management' promo