Jared Leto is set to play Hugh Hefner in a new biopic of the late Playboy founder.