なるほど、わかった。
naruhodo, wakatta.
I see, got it.
なるほど、そういうことか。
naruhodo, sou iu koto ka.
I see — so that's what it means.