All-star third baseman José Ramírez has agreed to a seven-year, $175 million deal to stay with the Cleveland Guardians.