Angle-resolved photoemission spectroscopy with an $\textit{in situ}$ tunable magnetic field