In the old Terminal B there was a large machine inside the terminal near the stop for the city buses that sold metro cards. I do not know where that machine is in the new terminal B. Without a metro card, you can only pay the $2.75 with coins (not bills and not credit card) which is not user friendly.
Update: Buses now allow use of credit cards upon boarding.