Batista allowed four earned runs to Los Angeles in an 81-pitch, three-inning effort on Saturday -- just his fifth start of the year.
"It was very tough, Miguel has done a great job here," manager Terry Collins said of the move. "Of course he's a first-class guy and he brings a lot to the party as far as a clubhouse presence.
"He's done a great job -- whenever you call his name he pitches. It was tough."
Ramirez, who was with the Mets earlier this season from June 1-22, was available out of the bullpen on Sunday. He held a 1.99 ERA in 29 Minor League games this season.