Infielder Jeff Baker agreed to a two-year, $3.7 million deal with the Miami Marlins, the New York Post reported Tuesday.

Baker, 33, hit .279 with 11 homers in 175 plate appearances for the Texas Rangers last year.

Baker has played for six different teams in the past five seasons.