A Birch and Swinnerton-Dyer formula for high-weight modular forms