A man and a boy died after being pulled from the ocean at Cowell Ranch Beach in San Mateo County on Sunday afternoon, according to California State Parks officials.