In the context you mention, it means "I do not believe you". If somebody asks you "Did you take the last cookie", and you said "honestly, I didn't take it". And they say "if you say so". That suggests that they think you took the cookie, but they can't prove it, so they won't pursue the discussion. If you have evidence that you didn't take the cookie, then it might be a good idea to show the evidence.