If the edamame is still in the pod (or shell), the best way to cook it would be to boil it in some water for about 3 to 5 minutes, then drain and sprinkle with salt and pepper or whatever seasonings you like.