The person spoke on condition of anonymity Thursday because Baez must pass a physical for the contract to be complete.
Baez strengthens the back end of Philadelphia's bullpen. The 32-year-old right-hander has 114 career saves. He was 4-6 with a 4.02 ERA in 59 games with Baltimore last year.
The deal was first reported by MLB.com.