The 39-year-old retired Dominican ballplayer was taken into custody Monday and spent the night behind bars.
At Tuesday's arraignment, Judge Jon Hurley set bail at $2,500 and prohibited Ramirez from approaching his wife, Juliana, who was the person who had called police to the couple's home in Weston, near Fort Lauderdale.
Juliana told police Ramirez hit her in the face, which caused her to fall and hit her head on the headboard of their bed.
Authorities said that Ramirez denied hitting his wife and claimed that he was simply holding her by the shoulders when she tried to move, thereby hitting her own head.
Ramirez was met by several relatives when he left the jail just before noon. He got into a luxury SUV and did not answer any of the questions posed to him by reporters on the scene.
Ramirez retired from the Major Leagues in April, when he was playing for the Tampa Bay Rays, because he had not complied with the terms of a 100-game suspension after testing positive for prohibited substances for the second time.
The 12-time All Star had already served another suspension of 50 games in 2009 when he was playing with the Los Angeles Dodgers for having tested positive for a steroid-like substance.