Broward Circuit Judge Jon Hurley set bail at $2,500 Tuesday morning on the domestic battery charge, but it wasn't immediately clear when Ramirez would leave Broward County Jail.
Broward County sheriff's officials say 39-year-old Ramirez was arguing with his wife, Juliana, when he slapped her face, causing her to hit her head on their bed's headboard. She told the deputy she was afraid the situation would escalate.
Authorities say Ramirez denied hitting his wife.
He retired in April from the Tampa Bay Rays rather than facing a 100-game suspension after tested positive a second time for a performance-enhancing substance.