On May 4, 2017, Ramírez was claimed off waivers by the Toronto Blue Jays. He was designated for assignment on May 9 without having thrown a pitch for the Blue Jays. On May 14, Ramírez elected free agency after being outrighted to the minor leagues. On May 16, 2017, the New York Mets signed Ramírez. On July 20, the Mets designated Ramírez for assignment. On July 27, 2017, Ramírez signed a minor league deal with the Washington Nationals. He elected free agency on November 6, 2017. Ramírez signed a minor league contract with the Cleveland Indians on November 30, 2017. The Indians purchased Ramírez's contract on May 15, 2018. He finished the season with an ERA of 4.54 in innings, his most output since his rookie season in 2014. He began the 2019 season in the bullpen. He was designated for assignment by the Indians on May 18, 2019 after registering an ERA of 5.40 in innings. After clearing waivers, Ramírez accepted a minor league assignment to the Columbus Clippers, the Indians' Triple-A affiliate, on May 23, 2019. He was released on August 2, 2019. On August 6, 2019, Ramirez signed a minor league deal with the Toronto Blue Jays. He was called up by the Blue Jays on August 11. On September 1, Ramirez was designated for assignment. He declared free agency on September 4, 2019. On December 22, 2019, ramirez signed a minor league deal with the Los Angeles Angels that included an invitation to Spring Training. According to "Baseball America", Ramírez is tall, weighs , and can throw his fastball at . Ramírez married Tiffany in October 2014.