You can use --transform
option if you use GNU tar.
$ rm test.tar
$ touch a_name
$ tar cf test.tar --transform s/.*/another_name/ a_name
$ tar tf test.tar
another_name
According to GNU tar(1) manpage:
--transform, --xform EXPRESSION use sed replace EXPRESSION to transform file names