Works the same for ranged touch attacks also, except substitute Dex Mod for Str Mod.
Note that it is supposed to be Str Mod and Dex Mod not Str Bonus and Dex Bonus, if you have a Str or Dex minus modifier then that applies to your attack rolls (depending on whether they are melee or ranged).