You can do this under the Carrier Configuration in System->Configuration->Shipping Settings
Switch debug to Yes in the particular carrier you need.
Then under Developer->Log Settings set Enabled to Yes.
You can now view the logs in the file system under var/log.
See also this screencast on WebShopApps specific logging.