The Dodgers announced that they have acquired Hanley Ramirez and Randy Choate from the Marlins for Nathan Eovaldi and minor league right-hander Scott McGough. Dylan Hernandez of the Los Angeles Times reports that Miami is not sending any money to the Dodgers to cover the salaries of Ramirez and Choate (Twitter links). But GM Ned Colletti couldn't pass up the chance to add Ramirez to his team's struggling lineup.

“The addition of a hitter the caliber of Hanley Ramirez improves our lineup from top to bottom, inserting a proven run producer to go along with Matt and Andre,” Colletti said. “We’re excited for Hanley to begin a new chapter in Los Angeles.”

The Athletics, Dodgers, Blue Jays and Orioles all had some interest in Ramirez, and the Red Sox might have been interested as well. However, the infielder has 37.3MM remaining on his contract with Miami ($15MM in 2012, $15.5MM in 2013 and $16MM in 2014) and owns a pedestrian .246/.322/.430 batting line. His trade value isn’t what it once was.

"We had to do something," Marlins owner Jeffrey Loria said, according to Ken Rosenthal of FOX Sports (on Twitter). "The machine was sputtering. It's too good a baseball team and for some reason it didn't seem to be operating on all cylinders from the beginning of the season."

Dodgers manager Don Mattingly will determine whether to play Ramirez at shortstop or third base, Rosenthal reports (on Twitter). Ramirez has volunteered to play either position, Jon Heyman of CBSSports.com reports (on Twitter). He's likely to play shortstop until Dee Gordon returns from the disabled list, then move to third base.

Choate, 36, has a 2.49 ERA with 9.6 K/9, 3.2 BB/9 and a 60.3% ground ball rate in 25 1/3 innings with the Marlins this year. The lefty specialist earns $1.5MM in the final season of a two-year, $2.5MM contract and will hit free agency after the season. The Dodgers had been looking for a left-handed reliever.

Eovaldi has started ten games for the Dodgers this year, posting a 4.15 ERA with 5.4 K/9 and 3.2 BB/9 in 56 1/3 innings. The 22-year-old entered the season as the 96th-best prospect in MLB, according to Baseball America. In five minor league seasons he has a 3.28 ERA with 7.4 K/9 and 3.7 BB /9.

McGough, a 22-year-old right-hander, has a 3.88 ERA with 9.1 K/9 and 4.7 BB/9 in 34 relief outings at Class A. The 2011 fifth rounder has averaged more than one strikeout per inning since being drafted.

Tim Brown of Yahoo! Sports first reported the trade and Jon Paul Morosi of FOX Sports first reported McGough's inclusion in the deal. Ben Nicholson-Smith contributed to this post.