How to Disable Trackbacks and Pingbacks on Post

Is it possible to simply disable trackbacks and pings on WordPress posts?