2:06pm: It's a minor league deal, Andrew Baggarly of CSNBayArea.com reports (on Twitter).
The right-hander pitched for San Francisco from 2010-11, but was traded to the Mets with Andres Torres in the trade that brought Angel Pagan to San Francisco last offseason. One winter later, all three players signed with the Giants as free agents.
Ramirez appeared in 58 games for the Mets in 2012, posting a 4.24 ERA with 7.4 K/9 and 4.9 BB/9 in 63 2/3 innings out of the bullpen. The 31-year-old had a 46.7% ground ball rate and his fastball averaged 91.1 mph, according to FanGraphs.