The Diamondbacks released Ramirez on Saturday.
Ramirez was designated for assignment by the Diamondbacks on Thursday.
Ramirez struck out three over 1.1 scoreless innings to earn his 10th hold in Sunday's 13-1 win over the Phillies.
Ramirez recorded just two outs and surrendered five runs on five hits and a walk during his relief appearance in Tuesday's 14-8 loss to the Reds.
Ramirez allowed two runs on two hits and hit a batter over two-thirds of an inning in Monday's 5-4 win over Miami.
Ramirez threw a scoreless inning of relief in Tuesday's 2-1 loss to Houston.
Ramirez agreed to a one-year, $1.25 million deal with the Diamondbacks to avoid arbitration Tuesday, Robert Murray of FanSided.com reports.
Ramirez allowed an unearned run on one hit and one walk while striking out one over a third of an inning to earn the save in Thursday's 8-7 win over the Phillies.
Ramirez has experienced diminished fastball velocity during his last two appearances, Nick Piecoro of the Arizona Republic reports.